/**
 * 子模块路由
 * dlq
 */

var router = function($urlRouterProvider, $stateProvider){

    $stateProvider

       //企业审核
    .state('app.company_checks', {
        url: '/company_check.html?type',
        views: {
            'main@' : {
                controller : 'company_checks',
                template: require('./views/company_check.html'),
            }
        },
        resolve:{
            formconfig : function(formservice){
                return formservice.formconfig();
            },
        }
        
      })
       //企业注册
      .state('app.registers', {
        url: '/register.html',
        views: {
            'main@' : {
                controller : 'registers',
                template: require('./views/register.html'),
            }
        },
        resolve:{
            formconfig : function(formservice){
                return formservice.formconfig();
            },
        }
        
      })
      //完善企业信息
      .state('app.completeinfos', {
        url: '/completeinfo.html/:company_id',
        views: {
            'main@' : {
                controller : 'completeinfos',
                template: require('./views/completeinfo.html'),
            }
        },
        resolve:{
            formconfig : function(formservice){
                return formservice.formconfig();
            },
        }
        
      })
  //     //通知公告
      .state('app.notices', {
        url: '/notice.html?state',
        views: {
            'main@' : {
                controller : 'notices',
                template: require('./views/notice.html'),
            }
        },
        resolve:{
        }
        
      })

       //审核管理
      .state('app.examines', { 
        url: '/examine.html?type',
        views: {
            'main@' : {
                controller : 'examines',
                template: require('./views/examine.html'),
                }
        },
        resolve:{
        }
        
      })
      //企业项目列表
      .state('app.project_lists', {
        url: '/project_list.html',
        views: {
            'main@' : {
                controller : 'project_lists',
                template: require('./views/project_list.html'),
            }
        },
        resolve:{
        }
        
      })

      //专家
       //项目查询列表
      .state('app.projectsearchs', { 
        url: '/projectsearch.html',
        views: {
            'main@' : {
                controller : 'projectsearchs',
                template: require('./views/projectsearch.html'),
                }
        },
        resolve:{
        }
        
      })
      //专家列表
      .state('app.expertlists', {
        url: '/expertlist.html',
        views: {
            'main@' : {
                controller : 'expertlists',
                template: require('./views/expertlist.html'),
            }
        },
        resolve:{
        }
        
      })

    //专家推荐
      .state('app.expertrecs', {
        url: '/expertrec.html',
        views: {
            'main@' : {
                controller : 'expertrecs',
                template: require('./views/expertrec.html'),
                }
        },
        resolve:{
        }
        
      })

      //项目推荐
      .state('app.project_recommendations', { 
        url: '/project_recommendation.html',
        views: {
            'main@' : {
                controller : 'project_recommendations',
                template: require('./views/project_recommendation.html'),
            }
        },
        resolve:{
        }
        
      })

      //项目评审
      .state('app.project_appraisals', { 
        url: '/project_appraisal.html',
        views: {
            'main@' : {
                controller : 'project_appraisals',
                template: require('./views/project_appraisal.html'),
            }
        },
        resolve:{
        }
        
      })

      //专家设定
      .state('app.expert_settings', { 
        url: '/expert_setting.html/:project_code/:set',
        views: {
            'main@' : {
                controller : 'expert_settings',
                template: require('./views/expert_setting.html'),
            }
        },
        resolve:{
        }
        
      })

       //专家设定
      .state('app.project_acceptances', { 
        url: '/project_acceptance.html',
        views: {
            'main@' : {
                controller : 'project_acceptances',
                template: require('./views/project_acceptance.html'), 
            }
        },
        resolve:{
        }
        
      })

      //专家立项
      .state('app.project_confirmations', { 
        url: '/project_confirmation.html',
        views: {
            'main@' : {
                controller : 'project_confirmations',
                template: require('./views/project_confirmation.html'), 
            }
        },
        resolve:{
        }
        
      })

      //提报进度
      .state('app.reporting_progresss', { 
        url: '/reporting_progress.html', 
        views: {
            'main@' : {
                controller : 'reporting_progresss',
                template: require('./views/reporting_progress.html'), 
            }
        },
        resolve:{
        }
        
      })
      //专家评审
      .state('app.expert_review_lists', { 
        url: '/expert_review_list.html',
        views: {
            'main@' : {
                controller : 'expert_review_lists',
                template: require('./views/expert_review_list.html'), 
            }
        },
        resolve:{
        }
        
      })

      //入库专家
      .state('app.warehousing_experts', { 
        url: '/warehousing_expert.html',  
        views: {
            'main@' : {
                controller : 'warehousing_experts',
                template: require('./views/warehousing_expert.html'), 
            }
        },
        resolve:{
        }
        
      })

       //专家评审
      .state('app.expert_reviews', {  
        url: '/expert_review.html',  
        views: {
            'main@' : {
                controller : 'expert_reviews',
                template: require('./views/expert_review.html'), 
            }
        },
        resolve:{
        }
        
      })

      //专家评估
      .state('app.expert_evaluations', {  // setting_expert
        url: '/expert_evaluation.html',  
        views: {
            'main@' : {
                controller : 'expert_evaluations',
                template: require('./views/expert_evaluation.html'), 
            }
        },
        resolve:{
        }
        
      })


      //区县审核列表
      .state('app.distinct_review_lists', { 
        url: '/distinct_review_list.html?type',
        views: {
            'main@' : {
                controller : 'distinct_review_lists',
                template: require('./views/distinct_review_list.html'), 
            }
        },
        resolve:{
        }
        
      })

      //组委办上传pdf文件
      .state('app.office_files', {   //expert_first
        url: '/office_file.html',  
        views: {
            'main@' : {
                controller : 'office_files',
                template: require('./views/office_file.html'), 
            }
        },
        resolve:{
        }
        
      })

      //专家优先上传评分
      .state('app.expert_firsts', {  
        url: '/expert_first.html',  
        views: {
            'main@' : {
                controller : 'expert_firsts',
                template: require('./views/expert_first.html'), 
            }
        },
        resolve:{
        }
        
      })

      //旅游局公告&&创建项目
      .state('app.noticeProjects', {  
        url: '/noticeProject.html',  
        views: {
            'main@' : {
                controller : 'noticeProjects',
                template: require('./views/noticeProject.html'), 
            }
        },
        resolve:{
        }
        
      })
      //旅游局项目指南
      .state('app.projectGuides', {  
        url: '/projectGuide.html',  
        views: {
            'main@' : {
                controller : 'projectGuides',
                template: require('./views/projectGuide.html'), 
            }
        },
        resolve:{
        }
        
      })
      //创建项目指南
      .state('app.create_guides', {  
        url: '/create_guide.html/:id',  
        views: {
            'main@' : {
                controller : 'create_guides',
                template: require('./views/create_guide.html'), 
            }
        },
        resolve:{
        }
        
      })
      //创建项目指南
      .state('app.addnotices', {  
        url: '/addnotice.html',  
        views: {
            'main@' : {
                controller : 'addnotices',
                template: require('./views/addnotice.html'), 
            }
        },
        resolve:{
        }
        
      })
      //项目查询
      .state('app.project_searchs', {
        url: '/project_search.html?type',  
        views: {
            'main@' : {
                controller : 'project_searchs',
                template: require('./views/project_search.html'), 
            }
        },
        resolve:{
          date2str: function (utilservice) {
            return utilservice.date2str;
          },
          str2date: function (utilservice) {
              return utilservice.str2date;
          },
        }
        
      })
      //创建项目
      .state('app.addprojects', {  
        url: '/addproject.html',  
        views: {
            'main@' : {
                controller : 'addprojects',
                template: require('./views/addproject.html'), 
            }
        },
        resolve:{
        }
        
      })
      //区县复核
      .state('app.pendingreviewlists', {  
        url: '/pendingreviewlist.html',  
        views: {
            'main@' : {
                controller : 'pendingreviewlists',
                template: require('./views/pendingreviewlist.html'), 
            }
        },
        resolve:{
        }
        
      })
    //项目初审
    .state('app.project_reviews', {  
      url: '/project_review.html?type',  
      views: {
          'main@' : {
              controller : 'project_reviews',
              template: require('./views/project_review.html'), 
          }
      },
      resolve:{
      }
      
    })
    //规划处认定
    .state('app.planning_department_affirmations', {
      url: '/planning_department_affirmation.html?type',  
      views: {
          'main@' : {
              controller : 'planning_department_affirmations',
              template: require('./views/planning_department_affirmation.html'), 
          }
      },
      resolve:{
      }
      
  })
  //认定指南
  .state('app.planningguides', {
      url: '/planningguide',  
      views: {
          'main@' : {
              controller : 'planningguides',
              template: require('./views/planningguide.html'), 
          }
      },
      resolve:{
      }
      
  })
  //认定公告
  .state('app.planningnotices', {
      url: '/planningnotice',  
      views: {
          'main@' : {
              controller : 'planningnotices',
              template: require('./views/planningnotice.html'), 
          }
      },
      resolve:{
      }
      
  })
  //认定项目
  .state('app.planningprojects', {
      url: '/planningproject',  
      views: {
          'main@' : {
              controller : 'planningprojects',
              template: require('./views/planningproject.html'), 
          }
      },
      resolve:{
      }
      
  })
  //项目撤销,项目认定
  .state('app.projectRevokes', {
    url: '/projectRevoke?type',  
    views: {
        'main@' : {
            controller : 'projectRevokes',
            template: require('./views/projectRevoke.html'), 
        }
    },
    resolve:{
    }
    
  })
  //项目指南(企业端)
  .state('app.notice_lists', {
    url: '/notice_list',  
    views: {
        'main@' : {
            controller : 'notice_lists',
            template: require('./views/notice_list.html'), 
        }
    },
    resolve:{
    }
    
  })
  //项目公告(企业端)
  .state('app.guide_lists', {
    url: '/guide_list',  
    views: {
        'main@' : {
            controller : 'guide_lists',
            template: require('./views/guide_list.html'), 
        }
    },
    resolve:{
    }
    
  })
  // 提交申报列表
  .state('app.declarationLists', {
    url: '/declarationList?type',  
    views: {
        'main@' : {
            controller : 'declarationLists',
            template: require('./views/declarationList.html'), 
        }
    },
    resolve:{
    }
    
  })
  // 驳回淘汰依据
  .state('app.dissmiss_infos', {
    url: '/dissmiss_info',  
    views: {
        'main@' : {
            controller : 'dissmiss_infos',
            template: require('./views/dissmiss_info.html'), 
        }
    },
    resolve:{
    }
    
  })
  // 项目查询详情
  .state('app.project_search_infos', {
    url: '/project_search_info',  
    views: {
        'main@' : {
            controller : 'project_search_infos',
            template: require('./views/project_search_info.html'), 
        }
    },
    resolve:{
    }
    
  })
  // 项目认定详情
  .state('app.project_cognizance_infos', {
    url: '/project_cognizance_info',  
    views: {
        'main@' : {
            controller : 'project_cognizance_infos',
            template: require('./views/project_cognizance_info.html'), 
        }
    },
    resolve:{
    }
    
  })
  // 创建账号
  .state('app.create_acounts', {
    url: '/create_acount',  
    views: {
        'main@' : {
            controller : 'create_acounts',
            template: require('./views/create_acount.html'), 
        }
    },
    resolve:{
    }
    
  })
  // 指南详情
  .state('app.guide_infos', {
    url: '/guide_info/:directory_pdf/:flag',  
    views: {
        'main@' : {
            controller : 'guide_infos',
            template: require('./views/guide_info.html'), 
        }
    },
    resolve:{
    }
    
  })
  // 认定指南详情
  .state('app.guide_cognizance_infos', {
    url: '/guide_cognizance_info/:directory_pdf/:type/:id/:state',  
    views: {
        'main@' : {
            controller : 'guide_cognizance_infos',
            template: require('./views/guide_cognizance_info.html'), 
        }
    },
    resolve:{
    }
    
  })

  // 项目初审中的审核意见及驳回原因
  .state('app.reasons', {
    url: '／reason',  
    views: {
        'main@' : {
            controller : 'reasons',
            template: require('./views/reason.html'), 
        }
    },
    resolve:{
    }
    
  })

  // 专家列表
  .state('app.expertExtraction', {
    url: '/expertExtraction.html',  
    views: {
        'main@' : {
            controller : 'expertExtraction',
            template: require('./views/expertExtraction.html'), 
        }
    },
    resolve:{
    }
    
  })
  // 已抽取专家列表
  .state('app.expertExtractionList', {
    url: '/expertExtractionList.html',  
    views: {
        'main@' : {
            controller : 'expertExtractionList',
            template: require('./views/expertExtractionList.html'), 
        }
    },
    resolve:{
    }
    
  })







     

};

module.exports = router;